﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SharpDX;

namespace BoatNGoat.Logic
{
    class PlayerControlledBehaviour : IMobBehaviour, IPlayerController
    {
        public float MovementSpeed { get; set; }

        public Vector2 MakeDecision(Server.ServerTime time, Vector2 latestPosition)
        {
            Vector2 direction = ((Vector2)TargetPosition - latestPosition);
            direction.Normalize();
            return (direction * MovementSpeed);
        }

        public Map.MapPosition TargetPosition { get; set; }
    }
}
